/**
 * 
 */
package com.hera.base.web.primefaces.push;

import javax.faces.application.FacesMessage;

import org.primefaces.push.annotation.OnMessage;
import org.primefaces.push.annotation.PushEndpoint;
import org.primefaces.push.annotation.Singleton;
import org.primefaces.push.impl.JSONEncoder;

/**
 * @author cmontes
 *
 */
@PushEndpoint("/{inbox}/{user}")
@Singleton
public class InboxResource {

	@OnMessage(encoders = {JSONEncoder.class})
    public FacesMessage onMessage(FacesMessage message) {
        return message;
    }
}
